package com.imooc.ad.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.StringUtils;

/**
 * @ClassName AdUnitRequest
 * Created by zghgchao 2019/3/25 18:19
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AdUnitRequest {
    private Long planId;
    private String unitName;
    private Integer positionType;
    private Long budget;

    public boolean createValidate(){
        return planId != null && !StringUtils.isEmpty(unitName)
                && positionType != null && budget != null;
    }
}
